package server;


import java.util.HashMap;

public class HTTPRequest {

	private String method;
	
	private String uri;
	
	private String version;
	
	private HashMap<String, String> headers=new HashMap<String, String>();
	
	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
	public String getHeader(String key){
		return headers.get(key);
	}
	
	public void setHeader(String key,String value){
		headers.put(key, value);
	}
	
	public void removeHeader(String key){
		headers.remove(key);
	}
}
